/*@license For license information please refer to graphql.licenses.txt*/ (self.webpackChunkgo_guides=self.webpackChunkgo_guides||[]).push([[265],{67558:function(e,t){var r,n=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,r,n){void 0===n&&(n=408);var i=e.call(this,t)||this;return i.timeout=r,i.statusCode=n,i}return n(t,e),t}(Error);t.default=i},10984:function(e,t,r){var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;--u)s.missing=((a={})[s.path[u]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,n.__extends)(t,e),t}(Error)},49641:function(e,t,r){r.d(t,{$O:function(){return b},E_:function(){return g},Is:function(){return T},RC:function(){return _},RI:function(){return f},ig:function(){return E},j:function(){return O},jS:function(){return v},jp:function(){return m},lg:function(){return y},uG:function(){return p}});var n=r(53712),i=r(51761),o=r(13154),a=r(21436),s=r(19065),u=r(182),c=r(23361),l=r(36765),f=Object.prototype.hasOwnProperty;function h(e){return null==e}function p(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=h(n)?h(i)?void 0:{_id:i}:{id:n}),h(n)&&!h(i)&&(n=i),!h(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var d={dataIdFromObject:p,addTypename:!0,resultCaching:!0,canonizeResults:!1};function v(e){return(0,n.o)(d,e)}function y(e){var t=e.canonizeResults;return void 0===t?d.canonizeResults:t}function m(e,t){return(0,i.Yk)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var b=/^[_a-z][_0-9a-z]*/i;function g(e){var t=e.match(b);return t?t[0]:e}function _(e,t,r){return!!(0,o.s)(t)&&((0,a.k)(t)?t.every((function(t){return _(e,t,r)})):e.selections.every((function(e){if((0,i.My)(e)&&(0,s.LZ)(e,r)){var n=(0,i.u2)(e);return f.call(t,n)&&(!e.selectionSet||_(e.selectionSet,t[n],r))}return!0})))}function O(e){return(0,o.s)(e)&&!(0,i.Yk)(e)&&!(0,a.k)(e)}function E(){return new u.w0}function T(e,t){var r=(0,c.F)((0,l.kU)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}},9099:function(e,t,r){r.d(t,{h:function(){return de}});var n=r(70655),i=r(56961),o=r(9964),a=r(30020),s=r(11294),u=r(75727),c=r(18056),l=r(76487),f=r(51761),h=r(97359),p=r(30320),d=r(53712),v=r(36765),y=r(182),m=r(19065),b=r(23361),g=r(48702),_=r(13154),O=r(75028),E=r(49641),T=Object.create(null),k=function(){return T},w=Object.create(null),S=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,g.J)((0,f.Yk)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,f.Yk)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,f.kQ)(e);if((0,f.Yk)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,f.kQ)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,n.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),E.RI.call(this.data,e)){var r=this.data[e];if(r&&E.RI.call(r,t))return r[t]}return"__typename"===t&&E.RI.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof N?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),E.RI.call(this.data,e)?this.data[e]:this instanceof N?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,f.Yk)(e)&&(e=e.__ref),(0,f.Yk)(t)&&(t=t.__ref);var o="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){(0,i.kG)("string"==typeof r,1);var s=new y.w0(A).merge(o,a);if(this.data[r]=s,s!==o&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);o||(u.__exists=1),Object.keys(a).forEach((function(e){if(!o||o[e]!==s[e]){u[e]=1;var t=(0,E.E_)(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||n instanceof N||delete s[e]}})),!u.__typename||o&&o.__typename||this.policies.rootTypenamesById[r]!==s.__typename||delete u.__typename,Object.keys(u).forEach((function(e){return n.group.dirty(r,e)}))}}},e.prototype.modify=function(e,t){var r=this,i=this.lookup(e);if(i){var o=Object.create(null),a=!1,s=!0,u={DELETE:T,INVALIDATE:w,isReference:f.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,f.kQ)(e)}:t,{store:r})}};if(Object.keys(i).forEach((function(c){var l=(0,E.E_)(c),f=i[c];if(void 0!==f){var h="function"==typeof t?t:t[c]||t[l];if(h){var p=h===k?T:h((0,g.J)(f),(0,n.__assign)((0,n.__assign)({},u),{fieldName:l,storeFieldName:c,storage:r.getStorage(e,c)}));p===w?r.group.dirty(e,c):(p===T&&(p=void 0),p!==f&&(o[c]=p,a=!0,f=p))}void 0!==f&&(s=!1)}})),a)return this.merge(e,o),s&&(this instanceof N?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=k,n):k)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(E.RI.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof N&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach((function(t){E.RI.call(e.policies.rootTypenamesById,t)||r.push(t)})),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(r){e&&E.RI.call(e,r)||t.delete(r)})),e){var r=e.__META,i=(0,n.__rest)(e,["__META"]);Object.keys(i).forEach((function(e){t.merge(e,i[e])})),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof N?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach((function(n){E.RI.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])}));var n=Object.keys(r);if(n.length){for(var i=this;i instanceof N;)i=i.parent;n.forEach((function(e){return i.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!E.RI.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach((function(e){(0,f.Yk)(e)&&(t[e.__ref]=!0),(0,_.s)(e)&&Object.keys(e).forEach((function(t){var r=e[t];(0,_.s)(r)&&n.add(r)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),I=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,o.dP)():null,this.keyMaker=new O.B(p.mr)},e.prototype.depend=function(e,t){if(this.d){this.d(D(e,t));var r=(0,E.E_)(t);r!==t&&this.d(D(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(D(e,t),"__exists"===t?"forget":"setDirty")},e}();function D(e,t){return t+"#"+e}function x(e,t){C(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,o=t.seed,a=e.call(this,r,new I(i))||this;return a.stump=new R(a),a.storageTrie=new O.B(p.mr),o&&a.replace(o),a}return(0,n.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(S||(S={}));var N=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,n.__extends)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach((function(r){(0,a.D)(n[r],i[r])||t.group.dirty(e,r)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(r){t.group.dirty(e,r)}))):t.delete(e)})),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,n.__assign)((0,n.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return E.RI.call(this.data,t)?(0,n.__assign)((0,n.__assign)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(S),R=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new I(t.group.caching,t.group))||this}return(0,n.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(N);function A(e,t,r){var n=e[r],i=t[r];return(0,a.D)(n,i)?n:i}function C(e){return!!(e instanceof S&&e.group.caching)}var F=r(21436),P=r(80900);function M(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var L=function(){function e(e){var t=this;this.knownResults=new(p.mr?WeakMap:Map),this.config=(0,d.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,E.lg)(e)}),this.canon=e.canon||new P.h,this.executeSelectionSet=(0,o.re)((function(e){var r,i=e.context.canonizeResults,o=M(e);o[3]=!i;var a=(r=t.executeSelectionSet).peek.apply(r,o);return a?i?(0,n.__assign)((0,n.__assign)({},a),{result:t.canon.admit(a.result)}):a:(x(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:M,makeCacheKey:function(e,t,r,n){if(C(r.store))return r.store.makeCacheKey(e,(0,f.Yk)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,o.re)((function(e){return x(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(C(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new P.h},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,i=e.rootId,o=void 0===i?"ROOT_QUERY":i,a=e.variables,s=e.returnPartialData,c=void 0===s||s,l=e.canonizeResults,h=void 0===l?this.config.canonizeResults:l,p=this.config.cache.policies;a=(0,n.__assign)((0,n.__assign)({},(0,v.O4)((0,v.iW)(r))),a);var d,y=(0,f.kQ)(o),m=this.executeSelectionSet({selectionSet:(0,v.p$)(r).selectionSet,objectOrReference:y,enclosingRef:y,context:(0,n.__assign)({store:t,query:r,policies:p,variables:a,varString:(0,P.B)(a),canonizeResults:h},(0,E.Is)(r,this.config.fragments))});if(m.missing&&(d=[new u.y(j(m.missing),m.missing,r,a)],!c))throw d[0];return{result:m.result,complete:!d,missing:d}},e.prototype.isFresh=function(e,t,r,n){if(C(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,o=e.enclosingRef,a=e.context;if((0,f.Yk)(n)&&!a.policies.rootTypenamesById[n.__ref]&&!a.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var s,u=a.variables,c=a.policies,p=a.store.getFieldValue(n,"__typename"),d=[],v=new y.w0;function _(e,t){var r;return e.missing&&(s=v.merge(s,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof p&&!c.rootIdsByTypename[p]&&d.push({__typename:p});var O=new Set(r.selections);O.forEach((function(e){var r,y;if((0,m.LZ)(e,u))if((0,f.My)(e)){var g=c.readField({fieldName:e.name.value,field:e,variables:a.variables,from:n},a),E=(0,f.u2)(e);void 0===g?l.Gw.added(e)||(s=v.merge(s,((r={})[E]="Can't find field '".concat(e.name.value,"' on ").concat((0,f.Yk)(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):(0,F.k)(g)?g=_(t.executeSubSelectedArray({field:e,array:g,enclosingRef:o,context:a}),E):e.selectionSet?null!=g&&(g=_(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:g,enclosingRef:(0,f.Yk)(g)?g:o,context:a}),E)):a.canonizeResults&&(g=t.canon.pass(g)),void 0!==g&&d.push(((y={})[E]=g,y))}else{var T=(0,b.hi)(e,a.lookupFragment);if(!T&&e.kind===h.h.FRAGMENT_SPREAD)throw(0,i._K)(7,e.name.value);T&&c.fragmentMatches(T,p)&&T.selectionSet.selections.forEach(O.add,O)}}));var E={result:(0,y.bw)(d),missing:s},T=a.canonizeResults?this.canon.admit(E):(0,g.J)(E);return T.result&&this.knownResults.set(T.result,r),T},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,o=e.array,a=e.enclosingRef,s=e.context,u=new y.w0;function c(e,r){var n;return e.missing&&(t=u.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(o=o.filter(s.store.canRead)),o=o.map((function(e,t){return null===e?null:(0,F.k)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:s}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,f.Yk)(e)?e:a,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach((function(r){(0,_.s)(r)&&((0,i.kG)(!(0,f.Yk)(r),8,(0,E.jp)(e,r),t.name.value),Object.values(r).forEach(n.add,n))}))}}(s.store,n,e),e)})),{result:s.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function j(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(t){return t}}var q=r(79487),Q=r(13887),V=r(66438),U=Object.create(null);function B(e){var t=JSON.stringify(e);return U[t]||(U[t]=Object.create(null))}function G(e){var t=B(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},o=r.keyObject=W(e,(function(e){var o=H(r.storeObject,e,n);return void 0===o&&t!==r.storeObject&&E.RI.call(t,e[0])&&(o=H(t,e,z)),(0,i.kG)(void 0!==o,2,e.join("."),t),o}));return"".concat(r.typename,":").concat(JSON.stringify(o))})}function K(e){var t=B(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=W(e,(function(e){var r=e[0],o=r.charAt(0);if("@"!==o)if("$"!==o){if(t)return H(t,e)}else{var a=r.slice(1);if(i&&E.RI.call(i,a)){var s=e.slice(0);return s[0]=a,H(i,s)}}else if(n&&(0,F.O)(n.directives)){var u=r.slice(1),c=n.directives.find((function(e){return e.name.value===u})),l=c&&(0,f.NC)(c,i);return l&&H(l,e.slice(1))}})),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function W(e,t){var r=new y.w0;return Y(e).reduce((function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e}),Object.create(null))}function Y(e){var t=B(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach((function(t,i){(0,F.k)(t)?(Y(t).forEach((function(e){return r.push(n.concat(e))})),n.length=0):(n.push(t),(0,F.k)(e[i+1])||(r.push(n.slice(0)),n.length=0))}))}return t.paths}function z(e,t){return e[t]}function H(e,t,r){return r=r||z,J(t.reduce((function e(t,n){return(0,F.k)(t)?t.map((function(t){return e(t,n)})):t&&r(t,n)}),e))}function J(e){return(0,_.s)(e)?(0,F.k)(e)?e.map(J):W(Object.keys(e).sort(),(function(t){return H(e,t)})):e}function $(e){return void 0!==e.args?e.args:e.field?(0,f.NC)(e.field,e.variables):null}f.PT.setStringify(P.B);var X=function(){},Z=function(e,t){return t.fieldName},ee=function(e,t,r){return(0,r.mergeObjects)(e,t)},te=function(e,t){return t},re=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,n.__assign)({dataIdFromObject:E.uG},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,i=this,o=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a,s=t&&t.storeObject||e,u=(0,n.__assign)((0,n.__assign)({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=ie(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),c=o&&this.getTypePolicy(o),l=c&&c.keyFn||this.config.dataIdFromObject;l;){var f=l((0,n.__assign)((0,n.__assign)({},e),s),u);if(!(0,F.k)(f)){a=f;break}l=G(f)}return a=a?String(a):void 0,u.keyObject?[a,u.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(r){var i=e[r],o=i.queryType,a=i.mutationType,s=i.subscriptionType,u=(0,n.__rest)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),E.RI.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]}))},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?ee:!1===t?te:e.merge}a(n,t.merge),n.keyFn=!1===i?X:(0,F.k)(i)?G(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach((function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===s?Z:(0,F.k)(s)?K(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||Z)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,i.kG)(!n||n===e,3,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(r){t.getSupertypeSet(r,!0),e[r].forEach((function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(E.$O);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!E.RI.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(r,n){if(r.test(e)){var o=t.supertypeMap.get(n);o&&o.forEach((function(e){return i.add(e)}))}}))),i&&i.size&&i.forEach((function(e){var i=t.getTypePolicy(e),o=i.fields,a=(0,n.__rest)(i,["fields"]);Object.assign(r,a),Object.assign(r.fields,o)}))}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach((function(r){t.updateTypePolicy(e,r)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(t,!0),u=[s],c=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&u.indexOf(t)<0&&u.push(t)},l=!(!r||!this.fuzzySubtypes.size),f=!1,h=0;h1?s:t}:(o=(0,n.__assign)({},a),E.RI.call(o,"from")||(o.from=t)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&i.kG.warn(5,(0,Q.v)(Array.from(e))),void 0===o.variables&&(o.variables=r),o}function oe(e){return function(t,r){if((0,F.k)(t)||(0,F.k)(r))throw(0,i._K)(6);if((0,_.s)(t)&&(0,_.s)(r)){var o=e.getFieldValue(t,"__typename"),a=e.getFieldValue(r,"__typename");if(o&&a&&o!==a)return r;if((0,f.Yk)(t)&&(0,E.j)(r))return e.merge(t.__ref,r),t;if((0,E.j)(t)&&(0,f.Yk)(r))return e.merge(t,r.__ref),r;if((0,E.j)(t)&&(0,E.j)(r))return(0,n.__assign)((0,n.__assign)({},t),r)}return r}}function ae(e,t,r){var i="".concat(t).concat(r),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===r?e:(0,n.__assign)((0,n.__assign)({},e),{clientOnly:t,deferred:r})),o}var se=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,o=t.query,s=t.result,u=t.dataId,c=t.variables,l=t.overwrite,h=(0,v.$H)(o),p=(0,E.ig)();c=(0,n.__assign)((0,n.__assign)({},(0,v.O4)(h)),c);var d=(0,n.__assign)((0,n.__assign)({store:e,written:Object.create(null),merge:function(e,t){return p.merge(e,t)},variables:c,varString:(0,P.B)(c)},(0,E.Is)(o,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),y=this.processSelectionSet({result:s||Object.create(null),dataId:u,selectionSet:h.selectionSet,mergeTree:{map:new Map},context:d});if(!(0,f.Yk)(y))throw(0,i._K)(9,s);return d.incomingById.forEach((function(t,n){var o=t.storeObject,s=t.mergeTree,u=t.fieldNodeSet,c=(0,f.kQ)(n);if(s&&s.map.size){var l=r.applyMerges(s,c,o,d);if((0,f.Yk)(l))return;o=l}if(!1!==globalThis.__DEV__&&!d.overwrite){var h=Object.create(null);u.forEach((function(e){e.selectionSet&&(h[e.name.value]=!0)}));Object.keys(o).forEach((function(e){(function(e){return!0===h[(0,E.E_)(e)]})(e)&&!function(e){var t=s&&s.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,r,n){var o=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},s=o(e);if(!s)return;var u=o(t);if(!u)return;if((0,f.Yk)(s))return;if((0,a.D)(s,u))return;if(Object.keys(s).every((function(e){return void 0!==n.getFieldValue(u,e)})))return;var c=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=(0,E.E_)(r),h="".concat(c,".").concat(l);if(pe.has(h))return;pe.add(h);var p=[];(0,F.k)(s)||(0,F.k)(u)||[s,u].forEach((function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||p.includes(t)||p.push(t)}));!1!==globalThis.__DEV__&&i.kG.warn(12,l,c,p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"",h,s,u)}(c,o,e,d.store)}))}e.merge(n,o)})),e.retain(y.__ref),y},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,o=e.result,a=e.selectionSet,s=e.context,u=e.mergeTree,c=this.cache.policies,h=Object.create(null),p=r&&c.rootTypenamesById[r]||(0,f.qw)(o,a,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof p&&(h.__typename=p);var d=function(){var e=ie(arguments,h,s.variables);if((0,f.Yk)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=c.readField((0,n.__assign)((0,n.__assign)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return c.readField(e,s)},v=new Set;this.flattenFields(a,o,s,p).forEach((function(e,r){var n,a=(0,f.u2)(r),s=o[a];if(v.add(r),void 0!==s){var y=c.getStoreFieldName({typename:p,fieldName:r.name.value,field:r,variables:e.variables}),m=ce(u,y),b=t.processFieldValue(s,r,r.selectionSet?ae(e,!1,!1):e,m),g=void 0;r.selectionSet&&((0,f.Yk)(b)||(0,E.j)(b))&&(g=d("__typename",b));var _=c.getMergeFunction(p,r.name.value,g);_?m.info={field:r,typename:p,merge:_}:he(u,y),h=e.merge(h,((n={})[y]=b,n))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||l.Gw.added(r)||c.getReadFunction(p,r.name.value)||!1!==globalThis.__DEV__&&i.kG.error(10,(0,f.u2)(r),o)}));try{var y=c.identify(o,{typename:p,selectionSet:a,fragmentMap:s.fragmentMap,storeObject:h,readField:d}),m=y[0],b=y[1];r=r||m,b&&(h=s.merge(h,b))}catch(T){if(!r)throw T}if("string"==typeof r){var g=(0,f.kQ)(r),_=s.written[r]||(s.written[r]=[]);if(_.indexOf(a)>=0)return g;if(_.push(a),this.reader&&this.reader.isFresh(o,g,a,s))return g;var O=s.incomingById.get(r);return O?(O.storeObject=s.merge(O.storeObject,h),O.mergeTree=le(O.mergeTree,u),v.forEach((function(e){return O.fieldNodeSet.add(e)}))):s.incomingById.set(r,{storeObject:h,mergeTree:fe(u)?void 0:u,fieldNodeSet:v}),g}return h},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,F.k)(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,r,ce(n,o));return he(n,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,q.X)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,f.qw)(t,e,r.fragmentMap));var o=new Map,a=this.cache.policies,s=new O.B(!1);return function e(u,c){var l=s.lookup(u,c.clientOnly,c.deferred);l.visited||(l.visited=!0,u.selections.forEach((function(s){if((0,m.LZ)(s,r.variables)){var u=c.clientOnly,l=c.deferred;if(u&&l||!(0,F.O)(s.directives)||s.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var n=(0,f.NC)(e,r.variables);n&&!1===n.if||(l=!0)}})),(0,f.My)(s)){var p=o.get(s);p&&(u=u&&p.clientOnly,l=l&&p.deferred),o.set(s,ae(r,u,l))}else{var d=(0,b.hi)(s,r.lookupFragment);if(!d&&s.kind===h.h.FRAGMENT_SPREAD)throw(0,i._K)(11,s.name.value);d&&a.fragmentMatches(d,n,t,r.variables)&&e(d.selectionSet,ae(r,u,l))}}})))}(e,r),o},e.prototype.applyMerges=function(e,t,r,o,a){var s,u=this;if(e.map.size&&!(0,f.Yk)(r)){var c,l=(0,F.k)(r)||!(0,f.Yk)(t)&&!(0,E.j)(t)?void 0:t,h=r;l&&!a&&(a=[(0,f.Yk)(l)?l.__ref:l]);var p=function(e,t){return(0,F.k)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var r=p(l,t),n=p(h,t);if(void 0!==n){a&&a.push(t);var s=u.applyMerges(e,r,n,o,a);s!==n&&(c=c||new Map).set(t,s),a&&(0,i.kG)(a.pop()===t)}})),c&&(r=(0,F.k)(h)?h.slice(0):(0,n.__assign)({},h),c.forEach((function(e,t){r[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,o,a&&(s=o.store).getStorage.apply(s,a)):r},e}(),ue=[];function ce(e,t){var r=e.map;return r.has(t)||r.set(t,ue.pop()||{map:new Map}),r.get(t)}function le(e,t){if(e===t||!t||fe(t))return e;if(!e||fe(e))return t;var r=e.info&&t.info?(0,n.__assign)((0,n.__assign)({},e.info),t.info):e.info||t.info,i=e.map.size&&t.map.size,o={info:r,map:i?new Map:e.map.size?e.map:t.map};if(i){var a=new Set(t.map.keys());e.map.forEach((function(e,r){o.map.set(r,le(e,t.map.get(r))),a.delete(r)})),a.forEach((function(r){o.map.set(r,le(t.map.get(r),e.map.get(r)))}))}return o}function fe(e){return!e||!(e.info||e.map.size)}function he(e,t){var r=e.map,n=r.get(t);n&&fe(n)&&(ue.push(n),r.delete(t))}var pe=new Set;var de=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new c.A(l.Gw),r.assumeImmutableResults=!0,r.makeVar=V.QS,r.txCount=0,r.config=(0,E.jS)(t),r.addTypename=!!r.config.addTypename,r.policies=new re({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,n.__extends)(t,e),t.prototype.init=function(){var e=this.data=new S.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new se(this,this.storeReader=new L({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,E.lg)(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,o.re)((function(e,r){return t.broadcastWatch(e,r)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(C(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,P.B)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(i){if(i instanceof u.y)return null;throw i}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(E.RI.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,V._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,V.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){P.B.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,f.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(t){!1!==globalThis.__DEV__&&i.kG.warn(t)}},t.prototype.evict=function(e){if(!e.id){if(E.RI.call(e,"id"))return!1;e=(0,n.__assign)((0,n.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),P.B.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),(0,V.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,i=e.update,o=e.optimistic,a=void 0===o||o,s=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var n=r,o=n.data,a=n.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=i(r)}finally{--r.txCount,r.data=o,r.optimisticData=a}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&l.size?(this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e,t){var r=u.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach((function(e){return r.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(r){return t.maybeBroadcastWatch(r,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,n,r))||r&&(0,a.D)(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(s.R)},80900:function(e,t,r){r.d(t,{B:function(){return f},h:function(){return l}});var n=r(70655),i=r(75028),o=r(13154),a=r(30320),s=r(21436);var u,c,l=function(){function e(){this.known=new(a.sy?WeakSet:Set),this.pool=new i.B(a.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,o.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,o.s)(e)){var t=function(e){return(0,o.s)(e)?(0,s.k)(e)?e.slice(0):(0,n.__assign)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,o.s)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(u=this.pool.lookupArray(n)).array||(this.known.add(u.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),u.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),a=[i],s=this.sortedKeys(e);a.push(s.json);var u,c=a.length;if(s.sorted.forEach((function(r){a.push(t.admit(e[r]))})),!(u=this.pool.lookupArray(a)).object){var l=u.object=Object.create(i);this.known.add(l),s.sorted.forEach((function(e,t){l[e]=a[c+t]})),!1!==globalThis.__DEV__&&Object.freeze(l)}return u.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}(),f=Object.assign((function(e){if((0,o.s)(e)){void 0===u&&h();var t=u.admit(e),r=c.get(t);return void 0===r&&c.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)}),{reset:h});function h(){u=new l,c=new(a.mr?WeakMap:Map)}},66438:function(e,t,r){r.d(t,{QS:function(){return c},_v:function(){return u},ab:function(){return i},li:function(){return s}});var n=r(9964),i=new(r(82455).g7),o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.dP)()}),t}function s(e){a(e).vars.forEach((function(t){return t.forgetCache(e)}))}function u(e){a(e).vars.forEach((function(t){return t.attachCache(e)}))}function c(e){var t=new Set,r=new Set,n=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach((function(e){a(e).dep.dirty(n),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var u=Array.from(r);r.clear(),u.forEach((function(t){return t(e)}))}}else{var c=i.getValue();c&&(o(c),a(c).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),a(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}},84425:function(e,t,r){r.d(t,{f:function(){return H}});var n=r(70655),i=r(56961),o=r(93581),a=r(47037),s=r(49379),u=r(72198),c=r(30020),l=r(37280),f=r(19065),h=r(76487),p=r(80900),d=r(30320),v=r(18056),y=r(48216);function m(e,t,r){return new y.y((function(n){var i={then:function(e){return new Promise((function(t){return t(e())}))}};function o(e,t){return function(r){if(e){var o=function(){return n.closed?0:e(r)};i=i.then(o,o).then((function(e){return n.next(e)}),(function(e){return n.error(e)}))}else n[t](r)}}var a={next:o(t,"next"),error:o(r,"error"),complete:function(){i.then((function(){return n.complete()}))}},s=e.subscribe(a);return function(){return s.unsubscribe()}}))}var b=r(21436);function g(e){var t=_(e);return(0,b.O)(t)}function _(e){var t=(0,b.O)(e.errors)?e.errors.slice(0):[];return(0,l.GG)(e)&&(0,b.O)(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}var O=r(36765),E=r(51761),T=r(13154),k=r(60897),w=r(18263),S=r(86403);function I(e){return e&&"function"==typeof e.then}var D=function(e){function t(t){var r=e.call(this,(function(e){return r.addObserver(e),function(){return r.removeObserver(e)}}))||this;return r.observers=new Set,r.promise=new Promise((function(e,t){r.resolve=e,r.reject=t})),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),(0,w.p)(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),(0,w.p)(r.observers,"error",e))},complete:function(){var e=r,t=e.sub,n=e.sources;if(null!==t){var i=(void 0===n?[]:n).shift();i?I(i)?i.then((function(e){return r.sub=e.subscribe(r.handlers)})):r.sub=i.subscribe(r.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),(0,w.p)(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch((function(e){})),"function"==typeof t&&(t=[new y.y(t)]),I(t)?t.then((function(e){return r.start(e)}),r.handlers.error):r.start(t),r}return(0,n.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach((function(r){return r(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(r,n){t||(t=!0,e(r,n))}))},t}(y.y);(0,S.D)(D);var x=r(30990),N=r(40992),R=r(1644),A=r(77304),C=r(97359);function F(e){return e.kind===C.h.FIELD||e.kind===C.h.FRAGMENT_SPREAD||e.kind===C.h.INLINE_FRAGMENT}var P=r(182),M=r(23361),L=r(66438),j=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=(0,P.Ee)(t.resolvers,e)})):this.resolvers=(0,P.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,n.__awaiter)(this,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,s).then((function(e){return(0,n.__assign)((0,n.__assign)({},r),{data:e.result})}))]:[2,r]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,f.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,h.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.__assign)((0,n.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.__awaiter)(this,void 0,void 0,(function(){return(0,n.__generator)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return(0,n.__assign)((0,n.__assign)({},t),e.exportedVariables)}))]:[2,(0,n.__assign)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,A.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return A.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,h.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,i,o,a){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,n.__awaiter)(this,void 0,void 0,(function(){var s,u,c,l,f,h,p,d,v,y;return(0,n.__generator)(this,(function(m){return s=(0,O.p$)(e),u=(0,O.kU)(e),c=(0,M.F)(u),l=this.collectSelectionsToResolve(s,c),f=s.operation,h=f?f.charAt(0).toUpperCase()+f.slice(1):"Query",d=(p=this).cache,v=p.client,y={fragmentMap:c,context:(0,n.__assign)((0,n.__assign)({},r),{cache:d,client:v}),variables:i,fragmentMatcher:o,defaultOperationType:h,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},!1,[2,this.resolveSelectionSet(s.selectionSet,false,t,y).then((function(e){return{result:e,exportedVariables:y.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r,o){return(0,n.__awaiter)(this,void 0,void 0,(function(){var a,s,u,c,l,h=this;return(0,n.__generator)(this,(function(p){return a=o.fragmentMap,s=o.context,u=o.variables,c=[r],l=function(e){return(0,n.__awaiter)(h,void 0,void 0,(function(){var l,h;return(0,n.__generator)(this,(function(n){return(t||o.selectionsToResolve.has(e))&&(0,f.LZ)(e,u)?(0,E.My)(e)?[2,this.resolveField(e,t,r,o).then((function(t){var r;void 0!==t&&c.push(((r={})[(0,E.u2)(e)]=t,r))}))]:((0,E.Ao)(e)?l=e:(l=a[e.name.value],(0,i.kG)(l,16,e.name.value)),l&&l.typeCondition&&(h=l.typeCondition.name.value,o.fragmentMatcher(r,h,s))?[2,this.resolveSelectionSet(l.selectionSet,t,r,o).then((function(e){c.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return(0,P.bw)(c)}))]}))}))},e.prototype.resolveField=function(e,t,r,i){return(0,n.__awaiter)(this,void 0,void 0,(function(){var o,a,s,u,c,l,f,h,p,d=this;return(0,n.__generator)(this,(function(n){return r?(o=i.variables,a=e.name.value,s=(0,E.u2)(e),u=a!==s,c=r[s]||r[a],l=Promise.resolve(c),i.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=r.__typename||i.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(p=h[u?a:s])&&(l=Promise.resolve(L.ab.withValue(this.cache,p,[r,(0,E.NC)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then((function(r){var n,o;if(void 0===r&&(r=c),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=r)}))})),!e.selectionSet)return r;if(null==r)return r;var a=null!==(o=null===(n=e.directives)||void 0===n?void 0:n.some((function(e){return"client"===e.name.value})))&&void 0!==o&&o;return Array.isArray(r)?d.resolveSubSelectedArray(e,t||a,r,i):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||a,r,i):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map((function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(o){if(!n.has(o)){var a=new Set;n.set(o,a),(0,A.Vn)(o,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach((function(e){r(e)&&F(e)&&a.add(e)}))},FragmentSpread:function(n,o,s,u,c){var l=t[n.name.value];(0,i.kG)(l,17,n.name.value);var f=e(l);f.size>0&&(c.forEach((function(e){r(e)&&F(e)&&a.add(e)})),a.add(n),f.forEach((function(e){a.add(e)})))}})}return n.get(o)}(e)},e}(),q=new(d.mr?WeakMap:Map);function Q(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return q.set(e,(q.get(e)+1)%1e15),r.apply(this,arguments)})}function V(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var U=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;q.has(r)||(q.set(r,0),Q(r,"evict"),Q(r,"modify"),Q(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||R.Ie.loading;return this.variables&&this.networkStatus!==R.Ie.loading&&!(0,c.D)(this.variables,e.variables)&&(t=R.Ie.setVariables),(0,c.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){V(this),this.dirty=!1},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,c.D)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,c.D)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():(0,N.vj)(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;V(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,R.Oj)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,n.__assign)((0,n.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,c.D)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===q.get(this.cache)&&(0,c.D)(t,r.variables)&&(0,c.D)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new P.w0,a=(0,b.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,b.O)(e.incremental)){var s=(0,l.mT)(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(B(e,r.errorPolicy)?this.cache.performTransaction((function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:q.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var a=i.getDiffOptions(r.variables),s=o.diff(a);!i.stopped&&(0,c.D)(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=R.Ie.ready},e.prototype.markError=function(e){return this.networkStatus=R.Ie.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function B(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!g(e);return!n&&r&&e.data&&(n=!0),n}var G=r(30768),K=Object.prototype.hasOwnProperty,W=function(){function e(e){var t=this,r=e.cache,n=e.link,i=e.defaultOptions,o=e.documentTransform,a=e.queryDeduplication,s=void 0!==a&&a,u=e.onBroadcast,c=e.ssrMode,l=void 0!==c&&c,f=e.clientAwareness,h=void 0===f?{}:f,p=e.localState,y=e.assumeImmutableResults,m=void 0===y?!!r.assumeImmutableResults:y;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(d.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var b=new v.A((function(e){return t.cache.transformDocument(e)}),{cache:!1});this.cache=r,this.link=n,this.defaultOptions=i||Object.create(null),this.queryDeduplication=s,this.clientAwareness=h,this.localState=p||new j({cache:r}),this.ssrMode=l,this.assumeImmutableResults=m,this.documentTransform=o?b.concat(o).concat(b):b,(this.onBroadcast=u)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.cancelPendingFetches((0,i._K)(23))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,r,o=e.mutation,a=e.variables,s=e.optimisticResponse,u=e.updateQueries,c=e.refetchQueries,l=void 0===c?[]:c,f=e.awaitRefetchQueries,h=void 0!==f&&f,p=e.update,d=e.onQueryUpdated,v=e.fetchPolicy,y=void 0===v?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":v,b=e.errorPolicy,O=void 0===b?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":b,E=e.keepRootFields,T=e.context;return(0,n.__awaiter)(this,void 0,void 0,(function(){var e,t,r,c;return(0,n.__generator)(this,(function(f){switch(f.label){case 0:return(0,i.kG)(o,24),(0,i.kG)("network-only"===y||"no-cache"===y,25),e=this.generateMutationId(),o=this.cache.transformForLink(this.transform(o)),t=this.getDocumentInfo(o).hasClientExports,a=this.getVariables(o,a),t?[4,this.localState.addExportedVariables(o,a,T)]:[3,2];case 1:a=f.sent(),f.label=2;case 2:return r=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:a,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:e,document:o,variables:a,fetchPolicy:y,errorPolicy:O,context:T,updateQueries:u,update:p,keepRootFields:E}),this.broadcastQueries(),c=this,[2,new Promise((function(t,i){return m(c.getObservableFromLink(o,(0,n.__assign)((0,n.__assign)({},T),{optimisticResponse:s}),a,!1),(function(t){if(g(t)&&"none"===O)throw new x.cA({graphQLErrors:_(t)});r&&(r.loading=!1,r.error=null);var i=(0,n.__assign)({},t);return"function"==typeof l&&(l=l(i)),"ignore"===O&&g(i)&&delete i.errors,c.markMutationResult({mutationId:e,result:i,document:o,variables:a,fetchPolicy:y,errorPolicy:O,context:T,update:p,updateQueries:u,awaitRefetchQueries:h,refetchQueries:l,removeOptimistic:s?e:void 0,onQueryUpdated:d,keepRootFields:E})})).subscribe({next:function(e){c.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){r&&(r.loading=!1,r.error=t),s&&c.cache.removeOptimistic(e),c.broadcastQueries(),i(t instanceof x.cA?t:new x.cA({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&B(i,e.errorPolicy)){if((0,l.GG)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,l.GG)(i)&&(0,b.O)(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;s.result&&(u=(0,l.mT)(s.result,i)),void 0!==u&&(i.data=u,o.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach((function(e,n){var a=e.observableQuery,s=a&&a.queryName;if(s&&K.call(c,s)){var u=c[s],l=r.queries.get(n),f=l.document,h=l.variables,p=t.diff({query:f,variables:h,returnPartialData:!0,optimistic:!1}),d=p.result;if(p.complete&&d){var v=u(d,{mutationResult:i,queryName:f&&(0,O.rY)(f)||void 0,queryVariables:h});v&&o.push({result:v,dataId:"ROOT_QUERY",query:f,variables:h})}}}))}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach((function(e){return t.write(e)}));var s=e.update,u=!(0,l.M0)(i)||(0,l.GG)(i)&&!i.hasNext;if(s){if(!a){var c=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(i=(0,n.__assign)((0,n.__assign)({},i),{data:c.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}u&&s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return f.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).then((function(){return i}))}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{r.markMutationResult((0,n.__assign)((0,n.__assign)({},t),{result:{data:o}}),e)}catch(a){!1!==globalThis.__DEV__&&i.kG.error(a)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,f.mj)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,f.FS)(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,h.bi)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:(0,O.O4)((0,O.$H)(e)),asQuery:(0,n.__assign)((0,n.__assign)({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.__assign)((0,n.__assign)({},e),{operation:"query"}):e}))})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.__assign)((0,n.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,n.__assign)((0,n.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new U(this),i=new N.ue({queryManager:this,queryInfo:r,options:e});return i.lastQuery=t,this.queries.set(i.queryId,r),r.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),(0,i.kG)(e.query,26),(0,i.kG)("Document"===e.query.kind,27),(0,i.kG)(!e.returnPartialData,28),(0,i.kG)(!e.pollInterval,29),this.fetchQuery(t,(0,n.__assign)((0,n.__assign)({},e),{query:this.transform(e.query)})).finally((function(){return r.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,i._K)(30)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=R.Ie.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach((function(e){"string"==typeof e?o.set(e,!1):(0,E.JW)(e)?o.set(t.transform(e),!1):(0,T.s)(e)&&e.query&&a.add(e)})),this.queries.forEach((function(t,n){var i=t.observableQuery,a=t.document;if(i){if("all"===e)return void r.set(n,i);var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(a))&&(r.set(n,i),s&&o.set(s,!0),a&&o.set(a,!0))}})),a.size&&a.forEach((function(e){var o=(0,k.X)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new N.ue({queryManager:t,queryInfo:a,options:(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"network-only"})});(0,i.kG)(s.queryId===o),a.setObservableQuery(s),r.set(o,s)})),!1!==globalThis.__DEV__&&o.size&&o.forEach((function(e,t){e||!1!==globalThis.__DEV__&&i.kG.warn("string"==typeof t?31:32,t)})),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach((function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=void 0===i?"none":i,a=e.variables,s=e.context,u=void 0===s?{}:s;r=this.transform(r),a=this.getVariables(r,a);var c=function(e){return t.getObservableFromLink(r,u,e).map((function(i){"no-cache"!==n&&(B(i,o)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=g(i),s=(0,x.ls)(i);if(a||s){var u={};if(a&&(u.graphQLErrors=i.errors),s&&(u.protocolErrors=i.extensions[x.YG]),"none"===o||s)throw new x.cA(u)}return"ignore"===o&&delete i.errors,i}))};if(this.getDocumentInfo(r).hasClientExports){var l=this.localState.addExportedVariables(r,a,u).then(c);return new y.y((function(e){var t=null;return l.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return c(a)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i){var o,s,u=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var c=this.getDocumentInfo(e),l=c.serverQuery,f=c.clientQuery;if(l){var h=this.inFlightLinkObservables,d=this.link,v={query:l,variables:r,operationName:(0,O.rY)(l)||void 0,context:this.prepareContext((0,n.__assign)((0,n.__assign)({},t),{forceFetch:!i}))};if(t=v.context,i){var b=(0,G.S)(l),g=h.get(b)||new Map;h.set(b,g);var _=(0,p.B)(r);if(!(s=g.get(_))){var E=new D([(0,a.h)(d,v)]);g.set(_,s=E),E.beforeNext((function(){g.delete(_)&&g.size<1&&h.delete(b)}))}}else s=new D([(0,a.h)(d,v)])}else s=new D([y.y.of({data:{}})]),t=this.prepareContext(t);return f&&(s=m(s,(function(e){return u.localState.runResolvers({document:f,remoteResult:e,context:t,variables:r})}))),s},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return m(this.getObservableFromLink(i,r.context,r.variables),(function(o){var a=_(o),s=a.length>0;if(n>=e.lastRequestId){if(s&&"none"===r.errorPolicy)throw e.markError(new x.cA({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var u={data:o.data,loading:!1,networkStatus:R.Ie.ready};return s&&"ignore"!==r.errorPolicy&&(u.errors=a,u.networkStatus=R.Ie.error),u}),(function(t){var r=(0,x.MS)(t)?t:new x.cA({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i=this;void 0===r&&(r=R.Ie.loading),void 0===n&&(n=t.query);var o,a,s=this.getVariables(n,t.variables),u=this.getQuery(e),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?c&&c.fetchPolicy||"cache-first":l,h=t.errorPolicy,p=void 0===h?c&&c.errorPolicy||"none":h,d=t.returnPartialData,v=void 0!==d&&d,y=t.notifyOnNetworkStatusChange,m=void 0!==y&&y,b=t.context,g=void 0===b?{}:b,_=Object.assign({},t,{query:n,variables:s,fetchPolicy:f,errorPolicy:p,returnPartialData:v,notifyOnNetworkStatusChange:m,context:g}),O=function(e){_.variables=e;var n=i.fetchQueryByPolicy(u,_,r);return"standby"!==_.fetchPolicy&&n.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),n},E=function(){return i.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){E(),setTimeout((function(){return o.cancel(e)}))})),this.getDocumentInfo(_.query).hasClientExports)o=new D(this.localState.addExportedVariables(_.query,_.variables,_.context).then(O).then((function(e){return e.sources}))),a=!0;else{var T=O(_.variables);a=T.fromLink,o=new D(T.sources)}return o.promise.then(E,E),{concast:o,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,k.X)("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;n&&this.getObservableQueries(n).forEach((function(e,r){c.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})}));var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof U&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach((function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=u(i,a,o)}u&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)})),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,a=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,l=t.errorPolicy,f=t.returnPartialData,h=t.context,p=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:o,variables:a,networkStatus:r});var v=function(){return e.getDiff()},m=function(t,r){void 0===r&&(r=e.networkStatus||R.Ie.loading);var s=t.result;!1===globalThis.__DEV__||f||(0,c.D)(s,{})||(0,N.DC)(t.missing);var u=function(e){return y.y.of((0,n.__assign)({data:e,loading:(0,R.Oj)(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:h,variables:a,onlyRunForcedResolvers:!0}).then((function(e){return u(e.data||void 0)})):"none"===l&&r===R.Ie.refetch&&Array.isArray(t.missing)?u(void 0):u(s)},b="no-cache"===s?0:r===R.Ie.refetch&&"merge"!==u?1:2,g=function(){return i.getResultsFromLink(e,b,{query:o,variables:a,context:h,fetchPolicy:s,errorPolicy:l})},_=p&&"number"==typeof d&&d!==r&&(0,R.Oj)(r);switch(s){default:case"cache-first":return(O=v()).complete?{fromLink:!1,sources:[m(O,e.markReady())]}:f||_?{fromLink:!0,sources:[m(O),g()]}:{fromLink:!0,sources:[g()]};case"cache-and-network":var O;return(O=v()).complete||f||_?{fromLink:!0,sources:[m(O),g()]}:{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[m(v(),e.markReady())]};case"network-only":return _?{fromLink:!0,sources:[m(v()),g()]}:{fromLink:!0,sources:[g()]};case"no-cache":return _?{fromLink:!0,sources:[m(e.getDiff()),g()]}:{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new U(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.__assign)((0,n.__assign)({},t),{clientAwareness:this.clientAwareness})},e}(),Y=r(14012),z=!1,H=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i._K)(13);var r=e.uri,n=e.credentials,a=e.headers,c=e.cache,l=e.documentTransform,f=e.ssrMode,h=void 0!==f&&f,p=e.ssrForceFetchDelay,d=void 0===p?0:p,v=e.connectToDevTools,y=void 0===v?!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:v,m=e.queryDeduplication,b=void 0===m||m,g=e.defaultOptions,_=e.assumeImmutableResults,O=void 0===_?c.assumeImmutableResults:_,E=e.resolvers,T=e.typeDefs,k=e.fragmentMatcher,w=e.name,S=e.version,I=e.link;I||(I=r?new u.u({uri:r,credentials:n,headers:a}):o.i.empty()),this.link=I,this.cache=c,this.disableNetworkFetches=h||d>0,this.queryDeduplication=b,this.defaultOptions=g||Object.create(null),this.typeDefs=T,d&&setTimeout((function(){return t.disableNetworkFetches=!1}),d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=s.i,this.localState=new j({cache:c,client:this,resolvers:E,fragmentMatcher:k}),this.queryManager=new W({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:l,queryDeduplication:b,ssrMode:h,clientAwareness:{name:w,version:S},localState:this.localState,assumeImmutableResults:O,onBroadcast:y?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),y&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,z||!1===globalThis.__DEV__||(z=!0,setTimeout((function(){if(window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&i.kG.log("Download the Apollo DevTools for a better development experience: %s",r)}}),1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,Y.J)(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,Y.J)(this.defaultOptions.query,e)),(0,i.kG)("cache-and-network"!==e.fetchPolicy,14),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,Y.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return(0,a.h)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((function(e,t){r.push(t),n.push(e)}));var o=Promise.all(n);return o.queries=r,o.results=n,o.catch((function(e){!1!==globalThis.__DEV__&&i.kG.debug(15,e)})),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},40992:function(e,t,r){r.d(t,{ue:function(){return E},DC:function(){return w},vj:function(){return T}});var n=r(70655),i=r(56961),o=r(30020),a=r(1644),s=r(36765),u=r(53712),c=r(79487),l=r(18263),f=r(48216),h=r(86403),p=r(23361),d=r(19065),v=r(51761);function y(e,t,r,i){var a=t.data,u=(0,n.__rest)(t,["data"]),c=r.data,l=(0,n.__rest)(r,["data"]);return(0,o.Z)(u,l)&&m((0,s.p$)(e).selectionSet,a,c,{fragmentMap:(0,p.F)((0,s.kU)(e)),variables:i})}function m(e,t,r,n){if(t===r)return!0;var i=new Set;return e.selections.every((function(e){if(i.has(e))return!0;if(i.add(e),!(0,d.LZ)(e,n.variables))return!0;if(b(e))return!0;if((0,v.My)(e)){var a=(0,v.u2)(e),s=t&&t[a],u=r&&r[a],c=e.selectionSet;if(!c)return(0,o.Z)(s,u);var l=Array.isArray(s),f=Array.isArray(u);if(l!==f)return!1;if(l&&f){var h=s.length;if(u.length!==h)return!1;for(var y=0;y0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(f.y);function T(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=n,"function"==typeof n?n.apply(this,arguments):r}}):e.reobserve()}function k(e){!1!==globalThis.__DEV__&&i.kG.error(21,e.message,e.stack)}function w(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&i.kG.debug(22,e)}function S(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,h.D)(E)},83217:function(e,t,r){r.r(t),r.d(t,{ApolloCache:function(){return c.R},ApolloClient:function(){return i.f},ApolloError:function(){return u.cA},ApolloLink:function(){return v.i},Cache:function(){return n},DocumentTransform:function(){return P.A},HttpLink:function(){return D.u},InMemoryCache:function(){return l.h},MissingFieldError:function(){return f.y},NetworkStatus:function(){return s.Ie},Observable:function(){return R.y},ObservableQuery:function(){return a.ue},checkFetcher:function(){return k.U},concat:function(){return g},createHttpLink:function(){return I.L},createSignalIfSupported:function(){return w},defaultDataIdFromObject:function(){return h.uG},defaultPrinter:function(){return T.sb},disableExperimentalFragmentVariables:function(){return j.J9},disableFragmentWarnings:function(){return j._t},empty:function(){return y},enableExperimentalFragmentVariables:function(){return j.wO},execute:function(){return _.h},fallbackHttpConfig:function(){return T.SC},from:function(){return m},fromError:function(){return C.Q},fromPromise:function(){return A},gql:function(){return j.Ps},isApolloError:function(){return u.MS},isNetworkRequestSettled:function(){return s.Jp},isReference:function(){return M.Yk},makeReference:function(){return M.kQ},makeVar:function(){return p.QS},mergeOptions:function(){return o.J},parseAndCheckHttpResponse:function(){return O.dO},resetCaches:function(){return j.HW},rewriteURIForGET:function(){return x.H},selectHttpOptionsAndBody:function(){return T.E4},selectHttpOptionsAndBodyInternal:function(){return T.ve},selectURI:function(){return S.r},serializeFetchParameter:function(){return E.g},setLogVerbosity:function(){return L.U6},split:function(){return b},throwServerError:function(){return F.P},toPromise:function(){return N}});var n,i=r(84425),o=r(14012),a=r(40992),s=r(1644),u=r(30990);n||(n={});var c=r(11294),l=r(9099),f=r(75727),h=r(49641),p=r(66438),d=r(56961),v=r(93581),y=v.i.empty,m=v.i.from,b=v.i.split,g=v.i.concat,_=r(47037),O=r(79307),E=r(15049),T=r(3453),k=r(23178),w=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}},S=r(11037),I=r(34747),D=r(72198),x=r(88663);function N(e){var t=!1;return new Promise((function(r,n){e.subscribe({next:function(e){t?!1!==globalThis.__DEV__&&d.kG.warn(40):(t=!0,r(e))},error:n})}))}var R=r(48216);function A(e){return new R.y((function(t){e.then((function(e){t.next(e),t.complete()})).catch(t.error.bind(t))}))}var C=r(16261),F=r(12782),P=r(18056),M=r(51761),L=r(66128),j=r(7745);(0,L.U6)(!1!==globalThis.__DEV__?"log":"silent")},1644:function(e,t,r){var n;function i(e){return!!e&&e<7}function o(e){return 7===e||8===e}r.d(t,{Ie:function(){return n},Jp:function(){return o},Oj:function(){return i}}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(n||(n={}))},30990:function(e,t,r){r.d(t,{MS:function(){return s},YG:function(){return o},cA:function(){return u},ls:function(){return a}});var n=r(70655),i=(r(56961),r(13154)),o=Symbol();function a(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function s(e){return e.hasOwnProperty("graphQLErrors")}var u=function(e){function t(r){var o,a,s=r.graphQLErrors,u=r.protocolErrors,c=r.clientErrors,l=r.networkError,f=r.errorMessage,h=r.extraInfo,p=e.call(this,f)||this;return p.name="ApolloError",p.graphQLErrors=s||[],p.protocolErrors=u||[],p.clientErrors=c||[],p.networkError=l||null,p.message=f||(o=p,a=(0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)([],o.graphQLErrors,!0),o.clientErrors,!0),o.protocolErrors,!0),o.networkError&&a.push(o.networkError),a.map((function(e){return(0,i.s)(e)&&e.message||"Error message not found."})).join("\n")),p.extraInfo=h,p.__proto__=t.prototype,p}return(0,n.__extends)(t,e),t}(Error)},38066:function(e,t,r){r.d(t,{A:function(){return m}});var n=r(70655),i=r(93581),o=r(19065),a=r(76487),s=r(48216),u=r(16261),c=r(3453),l=r(23178),f=r(11037),h=r(15049),p=r(79307),d=function(){function e(e){var t=e.batchDebounce,r=e.batchInterval,n=e.batchMax,i=e.batchHandler,o=e.batchKey;this.batchesByKey=new Map,this.scheduledBatchTimerByKey=new Map,this.batchDebounce=t,this.batchInterval=r,this.batchMax=n||0,this.batchHandler=i,this.batchKey=o||function(){return""}}return e.prototype.enqueueRequest=function(e){var t=this,r=(0,n.__assign)((0,n.__assign)({},e),{next:[],error:[],complete:[],subscribers:new Set}),i=this.batchKey(e.operation);return r.observable||(r.observable=new s.y((function(e){var n=t.batchesByKey.get(i);n||t.batchesByKey.set(i,n=new Set);var o=0===n.size,a=0===r.subscribers.size;return r.subscribers.add(e),a&&n.add(r),e.next&&r.next.push(e.next.bind(e)),e.error&&r.error.push(e.error.bind(e)),e.complete&&r.complete.push(e.complete.bind(e)),(o||t.batchDebounce)&&t.scheduleQueueConsumption(i),n.size===t.batchMax&&t.consumeQueue(i),function(){var o;r.subscribers.delete(e)&&r.subscribers.size<1&&n.delete(r)&&n.size<1&&(t.consumeQueue(i),null===(o=n.subscription)||void 0===o||o.unsubscribe())}}))),r.observable},e.prototype.consumeQueue=function(e){void 0===e&&(e="");var t=this.batchesByKey.get(e);if(this.batchesByKey.delete(e),t&&t.size){var r=[],n=[],i=[],o=[],a=[],u=[];t.forEach((function(e){r.push(e.operation),n.push(e.forward),i.push(e.observable),o.push(e.next),a.push(e.error),u.push(e.complete)}));var c=this.batchHandler(r,n)||s.y.of(),l=function(e){a.forEach((function(t){t&&t.forEach((function(t){return t(e)}))}))};return t.subscription=c.subscribe({next:function(e){if(Array.isArray(e)||(e=[e]),o.length!==e.length){var t=new Error("server returned results with length ".concat(e.length,", expected length of ").concat(o.length));return t.result=e,l(t)}e.forEach((function(e,t){o[t]&&o[t].forEach((function(t){return t(e)}))}))},error:l,complete:function(){u.forEach((function(e){e&&e.forEach((function(e){return e()}))}))}}),i}},e.prototype.scheduleQueueConsumption=function(e){var t=this;clearTimeout(this.scheduledBatchTimerByKey.get(e)),this.scheduledBatchTimerByKey.set(e,setTimeout((function(){t.consumeQueue(e),t.scheduledBatchTimerByKey.delete(e)}),this.batchInterval))},e}(),v=function(e){function t(t){var r=e.call(this)||this,n=t||{},i=n.batchDebounce,o=n.batchInterval,a=void 0===o?10:o,s=n.batchMax,u=void 0===s?0:s,c=n.batchHandler,l=void 0===c?function(){return null}:c,f=n.batchKey,h=void 0===f?function(){return""}:f;return r.batcher=new d({batchDebounce:i,batchInterval:a,batchMax:u,batchHandler:l,batchKey:h}),t.batchHandler.length<=1&&(r.request=function(e){return r.batcher.enqueueRequest({operation:e})}),r}return(0,n.__extends)(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})},t}(i.i),y=r(64004),m=function(e){function t(t){var r=e.call(this)||this,i=t||{},d=i.uri,m=void 0===d?"/graphql":d,b=i.fetch,g=i.print,_=void 0===g?c.sb:g,O=i.includeExtensions,E=i.preserveHeaderCase,T=i.batchInterval,k=i.batchDebounce,w=i.batchMax,S=i.batchKey,I=i.includeUnusedVariables,D=void 0!==I&&I,x=(0,n.__rest)(i,["uri","fetch","print","includeExtensions","preserveHeaderCase","batchInterval","batchDebounce","batchMax","batchKey","includeUnusedVariables"]);(0,l.U)(b),b||(b=fetch);var N={http:{includeExtensions:O,preserveHeaderCase:E},options:x.fetchOptions,credentials:x.credentials,headers:x.headers};r.batchDebounce=k,r.batchInterval=T||10,r.batchMax=w||10;return S=S||function(e){var t=e.getContext(),r={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:t.headers};return(0,f.r)(e,m)+JSON.stringify(r)},r.batcher=new v({batchDebounce:r.batchDebounce,batchInterval:r.batchInterval,batchMax:r.batchMax,batchKey:S,batchHandler:function(e){var t=(0,f.r)(e[0],m),r=e[0].getContext(),i={};if(r.clientAwareness){var l=r.clientAwareness,d=l.name,v=l.version;d&&(i["apollographql-client-name"]=d),v&&(i["apollographql-client-version"]=v)}var g={http:r.http,options:r.fetchOptions,credentials:r.credentials,headers:(0,n.__assign)((0,n.__assign)({},i),r.headers)},O=e.map((function(e){var t=e.query;return(0,o.FS)(["client"],t)?(0,a.ob)(t):t}));if(O.some((function(e){return!e})))return(0,u.Q)(new Error("BatchHttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or enable the `transformOptions.removeClientFields` option."));var E,T=e.map((function(e,t){var r=(0,c.ve)((0,n.__assign)((0,n.__assign)({},e),{query:O[t]}),_,c.SC,N,g);return r.body.variables&&!D&&(r.body.variables=(0,y.e)(r.body.variables,e.query)),r})),k=T.map((function(e){return e.body})),w=T[0].options;if("GET"===w.method)return(0,u.Q)(new Error("apollo-link-batch-http does not support GET requests"));try{w.body=(0,h.g)(k,"Payload")}catch(S){return(0,u.Q)(S)}return w.signal||"undefined"==typeof AbortController||(E=new AbortController,w.signal=E.signal),new s.y((function(r){return b(t,w).then((function(t){return e.forEach((function(e){return e.setContext({response:t})})),t})).then((0,p.dO)(e)).then((function(e){return E=void 0,r.next(e),r.complete(),e})).catch((function(e){E=void 0,e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e)})),function(){E&&E.abort()}}))}}),r}return(0,n.__extends)(t,e),t.prototype.request=function(e){return this.batcher.request(e)},t}(i.i)},93581:function(e,t,r){r.d(t,{i:function(){return l}});var n=r(56961),i=r(48216),o=r(70655);var a=r(36765);function s(e,t){return t?t(e):i.y.of()}function u(e){return"function"==typeof e?new l(e):e}function c(e){return e.request.length<=1}var l=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return i.y.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(u).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,r,n){var o=u(r),a=u(n||new e(s));return c(o)&&c(a)?new e((function(e){return t(e)?o.request(e)||i.y.of():a.request(e)||i.y.of()})):new e((function(e,r){return t(e)?o.request(e,r)||i.y.of():a.request(e,r)||i.y.of()}))},e.execute=function(e,t){return e.request(function(e,t){var r=(0,o.__assign)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"==typeof e?(0,o.__assign)((0,o.__assign)({},r),e(r)):(0,o.__assign)((0,o.__assign)({},r),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,o.__assign)({},r)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,a.rY)(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,i=Object.keys(e);r-1;){if(T=void 0,N=[h.slice(0,E),h.slice(E+f.length)],h=N[1],k=(T=N[0]).indexOf("\r\n\r\n"),w=p(T.slice(0,k)),(S=w["content-type"])&&-1===S.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(I=T.slice(k))if(D=d(e,I),Object.keys(D).length>1||"data"in D||"incremental"in D||"errors"in D||"payload"in D)(0,l.yU)(D)?(x={},"payload"in D&&(x=(0,n.__assign)({},D.payload)),"errors"in D&&(x=(0,n.__assign)((0,n.__assign)({},x),{extensions:(0,n.__assign)((0,n.__assign)({},"extensions"in x?x.extensions:null),(R={},R[c.YG]=D.errors,R))})),t(x)):t(D);else if(1===Object.keys(D).length&&"hasNext"in D&&!D.hasNext)return[2];E=h.indexOf(f)}return[3,1];case 3:return[2]}}))}))}function p(e){var t={};return e.split("\n").forEach((function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}})),t}function d(e,t){if(e.status>=300){(0,u.P)(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function v(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function y(e){return function(t){return t.text().then((function(e){return d(t,e)})).then((function(r){return t.status>=300&&(0,u.P)(t,r,"Response not successful: Received status code ".concat(t.status)),Array.isArray(r)||f.call(r,"data")||f.call(r,"errors")||(0,u.P)(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName,"'.")),r}))}}},88663:function(e,t,r){r.d(t,{H:function(){return i}});var n=r(15049);function i(e,t){var r=[],i=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){var o=void 0;try{o=(0,n.g)(t.variables,"Variables map")}catch(f){return{parseError:f}}i("variables",o)}if(t.extensions){var a=void 0;try{a=(0,n.g)(t.extensions,"Extensions map")}catch(f){return{parseError:f}}i("extensions",a)}var s="",u=e,c=e.indexOf("#");-1!==c&&(s=e.substr(c),u=e.substr(0,c));var l=-1===u.indexOf("?")?"?":"&";return{newURI:u+l+r.join("&")+s}}},3453:function(e,t,r){r.d(t,{E4:function(){return s},SC:function(){return o},sb:function(){return a},ve:function(){return u}});var n=r(70655),i=r(30768),o={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},a=function(e,t){return t(e)};function s(e,t){for(var r=[],i=2;i=i)&&(r?r(n,t):!!n)}}(i),r}return(0,n.__extends)(t,e),t.prototype.request=function(e,t){var r=new a(e,t,this.delayFor,this.retryIf);return r.start(),new o.y((function(e){return r.subscribe(e),function(){r.unsubscribe(e)}}))},t}(i.i)},64004:function(e,t,r){r.d(t,{e:function(){return o}});var n=r(70655),i=r(77304);function o(e,t){var r=(0,n.__assign)({},e),o=new Set(Object.keys(e));return(0,i.Vn)(t,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&o.delete(e.name.value)}}),o.forEach((function(e){delete r[e]})),r}},16261:function(e,t,r){r.d(t,{Q:function(){return i}});var n=r(48216);function i(e){return new n.y((function(t){t.error(e)}))}},12782:function(e,t,r){r.d(t,{P:function(){return n}});var n=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n}},85317:function(e,t,r){r.d(t,{K:function(){return s}});var n=r(67294),i=r(30320),o=r(56961),a=i.aS?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function s(){(0,o.kG)(!0,43);var e=n.createContext[a];return e||(Object.defineProperty(n.createContext,a,{value:e=n.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},53768:function(e,t,r){r.d(t,{e:function(){return s}});var n=r(70655),i=r(56961),o=r(67294),a=r(85317),s=function(e){var t=e.client,r=e.children,s=(0,a.K)(),u=o.useContext(s),c=o.useMemo((function(){return(0,n.__assign)((0,n.__assign)({},u),{client:t||u.client})}),[u,t]);return(0,i.kG)(c.client,44),o.createElement(s.Provider,{value:c},r)}},66252:function(e,t,r){r.d(t,{x:function(){return a}});var n=r(56961),i=r(67294),o=r(85317);function a(e){var t=i.useContext((0,o.K)()),r=e||t.client;return(0,n.kG)(!!r,47),r}},73359:function(e,t,r){r.d(t,{t:function(){return c}});var n=r(70655),i=r(67294),o=r(14012),a=r(71641),s=r(66252),u=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function c(e,t){var r,c=i.useRef(),l=i.useRef(),f=i.useRef(),h=(0,o.J)(t,c.current||{}),p=null!==(r=null==h?void 0:h.query)&&void 0!==r?r:e;l.current=h,f.current=p;var d=(0,a.A)((0,s.x)(t&&t.client),p),v=d.useQuery((0,n.__assign)((0,n.__assign)({},h),{skip:!c.current})),y=v.observable.options.initialFetchPolicy||d.getDefaultFetchPolicy(),m=Object.assign(v,{called:!!c.current}),b=i.useMemo((function(){for(var e={},t=function(t){var r=m[t];e[t]=function(){return c.current||(c.current=Object.create(null),d.forceUpdateState()),r.apply(this,arguments)}},r=0,n=u;r0?new u.cA({graphQLErrors:o}):void 0,d=e.onError||(null===(r=p.current.options)||void 0===r?void 0:r.onError);if(s&&d&&d(s,f),l===p.current.mutationId&&!f.ignoreResults){var v={called:!0,loading:!1,data:i,error:s,client:c};p.current.isMounted&&!(0,a.D)(p.current.result,v)&&h(p.current.result=v)}var y=e.onCompleted||(null===(n=p.current.options)||void 0===n?void 0:n.onCompleted);return s||null==y||y(t.data,f),t})).catch((function(t){var r;if(l===p.current.mutationId&&p.current.isMounted){var n={loading:!1,error:t,data:void 0,called:!0,client:c};(0,a.D)(p.current.result,n)||h(p.current.result=n)}var i=e.onError||(null===(r=p.current.options)||void 0===r?void 0:r.onError);if(i)return i(t,f),{data:void 0,errors:t};throw t}))}),[]),v=i.useCallback((function(){p.current.isMounted&&h({called:!1,loading:!1,client:r})}),[]);return i.useEffect((function(){return p.current.isMounted=!0,function(){p.current.isMounted=!1}}),[]),[d,(0,n.__assign)({reset:v},f)]}},71641:function(e,t,r){r.d(t,{A:function(){return _},a:function(){return g}});var n=r(70655),i=r(56961),o=r(67294),a=r(99564),s=r(30020),u=r(14012),c=r(85317),l=r(30990),f=r(1644),h=r(14692),p=r(66252),d=r(48702),v=r(30320),y=r(53712),m=r(21436),b=Object.prototype.hasOwnProperty;function g(e,t){return void 0===t&&(t=Object.create(null)),_((0,p.x)(t.client),e).useQuery(t)}function _(e,t){var r=o.useRef();r.current&&e===r.current.client&&t===r.current.query||(r.current=new O(e,t,r.current));var n=r.current;return n.forceUpdateState=o.useReducer((function(e){return e+1}),0)[1],n}var O=function(){function e(e,t,r){var n=this;this.client=e,this.query=t,this.forceUpdate=function(){return n.forceUpdateState()},this.ssrDisabledResult=(0,d.J)({loading:!0,data:void 0,error:void 0,networkStatus:f.Ie.loading}),this.skipStandbyResult=(0,d.J)({loading:!1,data:void 0,error:void 0,networkStatus:f.Ie.ready}),this.toQueryResultCache=new(v.mr?WeakMap:Map),(0,h.Vp)(t,h.n_.Query);var i=r&&r.result,o=i&&i.data;o&&(this.previousData=o)}return e.prototype.forceUpdateState=function(){!1!==globalThis.__DEV__&&i.kG.warn(48)},e.prototype.executeQuery=function(e){var t,r=this;e.query&&Object.assign(this,{query:e.query}),this.watchQueryOptions=this.createWatchQueryOptions(this.queryHookOptions=e);var n=this.observable.reobserveAsConcast(this.getObsQueryOptions());return this.previousData=(null===(t=this.result)||void 0===t?void 0:t.data)||this.previousData,this.result=void 0,this.forceUpdate(),new Promise((function(e){var t;n.subscribe({next:function(e){t=e},error:function(){e(r.toQueryResult(r.observable.getCurrentResult()))},complete:function(){e(r.toQueryResult(t))}})}))},e.prototype.useQuery=function(e){var t=this;this.renderPromises=o.useContext((0,c.K)()).renderPromises,this.useOptions(e);var r=this.useObservableQuery(),n=(0,a.$)(o.useCallback((function(e){if(t.renderPromises)return function(){};t.forceUpdate=e;var n=function(){var e=t.result,n=r.getCurrentResult();e&&e.loading===n.loading&&e.networkStatus===n.networkStatus&&(0,s.D)(e.data,n.data)||t.setResult(n)},i=function(e){if(o.unsubscribe(),o=r.resubscribeAfterError(n,i),!b.call(e,"graphQLErrors"))throw e;var a=t.result;(!a||a&&a.loading||!(0,s.D)(e,a.error))&&t.setResult({data:a&&a.data,error:e,loading:!1,networkStatus:f.Ie.error})},o=r.subscribe(n,i);return function(){setTimeout((function(){return o.unsubscribe()})),t.forceUpdate=function(){return t.forceUpdateState()}}}),[r,this.renderPromises,this.client.disableNetworkFetches]),(function(){return t.getCurrentResult()}),(function(){return t.getCurrentResult()}));return this.unsafeHandlePartialRefetch(n),this.toQueryResult(n)},e.prototype.useOptions=function(t){var r,n=this.createWatchQueryOptions(this.queryHookOptions=t),i=this.watchQueryOptions;(0,s.D)(n,i)||(this.watchQueryOptions=n,i&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(r=this.result)||void 0===r?void 0:r.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,!this.renderPromises&&!this.client.disableNetworkFetches||!1!==this.queryHookOptions.ssr||this.queryHookOptions.skip?this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:this.result!==this.ssrDisabledResult&&this.result!==this.skipStandbyResult||(this.result=void 0):this.result=this.ssrDisabledResult},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push((0,y.o)(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(u.J)},e.prototype.createWatchQueryOptions=function(e){var t;void 0===e&&(e={});var r=e.skip,i=(e.ssr,e.onCompleted,e.onError,e.defaultOptions,(0,n.__rest)(e,["skip","ssr","onCompleted","onError","defaultOptions"])),o=Object.assign(i,{query:this.query});if(!this.renderPromises||"network-only"!==o.fetchPolicy&&"cache-and-network"!==o.fetchPolicy||(o.fetchPolicy="cache-first"),o.variables||(o.variables={}),r){var a=o.fetchPolicy,s=void 0===a?this.getDefaultFetchPolicy():a,u=o.initialFetchPolicy,c=void 0===u?s:u;Object.assign(o,{initialFetchPolicy:c,fetchPolicy:"standby"})}else o.fetchPolicy||(o.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return o},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||"cache-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=o.useMemo((function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}),[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e,t)},e.prototype.handleErrorOrCompleted=function(e,t){var r=this;if(!e.loading){var n=this.toApolloError(e);Promise.resolve().then((function(){n?r.onError(n):e.data&&(null==t?void 0:t.networkStatus)!==e.networkStatus&&e.networkStatus===f.Ie.ready&&r.onCompleted(e.data)})).catch((function(e){!1!==globalThis.__DEV__&&i.kG.warn(e)}))}},e.prototype.toApolloError=function(e){return(0,m.O)(e.errors)?new l.cA({graphQLErrors:e.errors}):e.error},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var r=e.data,i=(e.partial,(0,n.__rest)(e,["data","partial"]));return this.toQueryResultCache.set(e,t=(0,n.__assign)((0,n.__assign)((0,n.__assign)({data:r},i),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&(0,m.O)(e.errors)&&(t.error=new l.cA({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){!e.partial||!this.queryHookOptions.partialRefetch||e.loading||e.data&&0!==Object.keys(e.data).length||"cache-only"===this.observable.options.fetchPolicy||(Object.assign(e,{loading:!0,networkStatus:f.Ie.refetch}),this.observable.refetch())},e}()},13433:function(e,t,r){r.d(t,{l:function(){return o}});var n=r(67294),i=r(99564);function o(e){return(0,i.$)(n.useCallback((function(t){return e.onNextChange((function r(){t(),e.onNextChange(r)}))}),[e]),e,e)}},99564:function(e,t,r){var n;r.d(t,{$:function(){return u}});var i=r(56961),o=r(67294),a=r(30320),s=!1,u=(n||(n=r.t(o,2))).useSyncExternalStore||function(e,t,r){var n=t();!1===globalThis.__DEV__||s||n===t()||(s=!0,!1!==globalThis.__DEV__&&i.kG.error(56));var u=o.useState({inst:{value:n,getSnapshot:t}}),l=u[0].inst,f=u[1];return a.JC?o.useLayoutEffect((function(){Object.assign(l,{value:n,getSnapshot:t}),c(l)&&f({inst:l})}),[e,n,t]):Object.assign(l,{value:n,getSnapshot:t}),o.useEffect((function(){return c(l)&&f({inst:l}),e((function(){c(l)&&f({inst:l})}))}),[e]),n};function c(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch(n){return!0}}},14692:function(e,t,r){r.d(t,{Vp:function(){return s},n_:function(){return n}});var n,i=r(56961);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(n||(n={}));var o=new Map;function a(e){var t;switch(e){case n.Query:t="Query";break;case n.Mutation:t="Mutation";break;case n.Subscription:t="Subscription"}return t}function s(e,t){var r=function(e){var t,r,a=o.get(e);if(a)return a;(0,i.kG)(!!e&&!!e.kind,57,e);for(var s=[],u=[],c=[],l=[],f=0,h=e.definitions;f0}},30320:function(e,t,r){r.d(t,{DN:function(){return s},JC:function(){return l},aS:function(){return a},mr:function(){return i},sy:function(){return o}});var n=r(56961),i="function"==typeof WeakMap&&"ReactNative"!==(0,n.wY)((function(){return navigator.product})),o="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,s=a&&Symbol.asyncIterator,u="function"==typeof(0,n.wY)((function(){return window.document.createElement})),c=(0,n.wY)((function(){return navigator.userAgent.indexOf("jsdom")>=0}))||!1,l=u&&!c},79487:function(e,t,r){r.d(t,{X:function(){return i}});var n=Object.prototype.toString;function i(e){return o(e)}function o(e,t){switch(n.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach((function(e,n){r[n]=o(e,t)})),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var i=Object.create(Object.getPrototypeOf(e));return t.set(e,i),Object.keys(e).forEach((function(r){i[r]=o(e[r],t)})),i;default:return e}}},53712:function(e,t,r){function n(){for(var e=[],t=0;t=0;--o){var a=i[o],s=!isNaN(+a)?[]:{};s[a]=t,t=s}r=n.merge(r,t)})),r}},60897:function(e,t,r){r.d(t,{X:function(){return i}});var n=new Map;function i(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},48702:function(e,t,r){r.d(t,{J:function(){return o}});var n=r(13154);function i(e){var t=new Set([e]);return t.forEach((function(e){(0,n.s)(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(r){(0,n.s)(e[r])&&t.add(e[r])}))})),e}function o(e){return!1!==globalThis.__DEV__&&i(e),e}},182:function(e,t,r){r.d(t,{Ee:function(){return a},bw:function(){return s},w0:function(){return c}});var n=r(70655),i=r(13154),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t1)for(var n=new c,i=1;i")}},56961:function(e,t,r){r.d(t,{kG:function(){return c},wY:function(){return o},_K:function(){return l}});var n=r(66128),i=r(49379);function o(e){try{return e()}catch(t){}}var a=o((function(){return globalThis}))||o((function(){return window}))||o((function(){return self}))||o((function(){return global}))||o((function(){return o.constructor("return this")()})),s=r(13887);function u(e){return function(t){for(var r=[],n=1;n80&&(u=a+c("(\n",l(s(n,"\n")),"\n)")),s([u,s(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+c(" ",s(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return s(["...",c("on ",t),s(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(c("(",s(n,", "),")")," ")+"on ".concat(r," ").concat(c("",s(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var r=e.value;return e.block?(0,i.LZ)(r,"description"===t?"":" "):JSON.stringify(r)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+s(e.values,", ")+"]"},ObjectValue:function(e){return"{"+s(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+c("(",s(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:a((function(e){var t=e.directives,r=e.operationTypes;return s(["schema",s(t," "),u(r)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a((function(e){return s(["scalar",e.name,s(e.directives," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return s(["type",t,c("implements ",s(r," & ")),s(n," "),u(i)]," ")})),FieldDefinition:a((function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(h(r)?c("(\n",l(s(r,"\n")),"\n)"):c("(",s(r,", "),")"))+": "+n+c(" ",s(i," "))})),InputValueDefinition:a((function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return s([t+": "+r,c("= ",n),s(i," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return s(["interface",t,c("implements ",s(r," & ")),s(n," "),u(i)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,r=e.directives,n=e.types;return s(["union",t,s(r," "),n&&0!==n.length?"= "+s(n," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,r=e.directives,n=e.values;return s(["enum",t,s(r," "),u(n)]," ")})),EnumValueDefinition:a((function(e){return s([e.name,s(e.directives," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,r=e.directives,n=e.fields;return s(["input",t,s(r," "),u(n)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(h(r)?c("(\n",l(s(r,"\n")),"\n)"):c("(",s(r,", "),")"))+(n?" repeatable":"")+" on "+s(i," | ")})),SchemaExtension:function(e){var t=e.directives,r=e.operationTypes;return s(["extend schema",s(t," "),u(r)]," ")},ScalarTypeExtension:function(e){return s(["extend scalar",e.name,s(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return s(["extend type",t,c("implements ",s(r," & ")),s(n," "),u(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return s(["extend interface",t,c("implements ",s(r," & ")),s(n," "),u(i)]," ")},UnionTypeExtension:function(e){var t=e.name,r=e.directives,n=e.types;return s(["extend union",t,s(r," "),n&&0!==n.length?"= "+s(n," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,r=e.directives,n=e.values;return s(["extend enum",t,s(r," "),u(n)]," ")},InputObjectTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return s(["extend input",t,s(r," "),u(n)]," ")}};function a(e){return function(t){return s([t.description,e(t)],"\n")}}function s(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(r))&&void 0!==t?t:""}function u(e){return c("{\n",l(s(e,"\n")),"\n}")}function c(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function l(e){return c(" ",e.replace(/\n/g,"\n "))}function f(e){return-1!==e.indexOf("\n")}function h(e){return null!=e&&e.some(f)}var p=r(30320).mr?new WeakMap:void 0,d=function(e){var t;return(t=null==p?void 0:p.get(e))||(t=function(e){return(0,n.Vn)(e,{leave:o})}(e),null==p||p.set(e,t)),t}},51761:function(e,t,r){r.d(t,{Ao:function(){return g},JW:function(){return u},My:function(){return b},NC:function(){return v},PT:function(){return h},Yk:function(){return s},kQ:function(){return a},qw:function(){return m},u2:function(){return y},vb:function(){return c},vf:function(){return l}});var n=r(56961),i=r(13154),o=r(23361);function a(e){return{__ref:String(e)}}function s(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function u(e){return(0,i.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function c(e,t,r,i){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var o={};r.fields.map((function(e){return c(o,e.name,e.value,i)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(r)){var a=(i||{})[r.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map((function(e){var r={};return c(r,t,e,i),r[t.value]}));else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw(0,n._K)(79,t.value,r.kind);e[t.value]=null}}function l(e,t){var r=null;e.directives&&(r={},e.directives.forEach((function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach((function(n){var i=n.name,o=n.value;return c(r[e.name.value],i,o,t)}))})));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach((function(e){var r=e.name,i=e.value;return c(n,r,i,t)}))),h(e.name.value,n,r)}var f=["connection","include","skip","client","rest","export","nonreactive"],h=Object.assign((function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach((function(e){i[e]=t[e]})),"".concat(r.connection.key,"(").concat(p(i),")")}return r.connection.key}var o=e;if(t){var a=p(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach((function(e){-1===f.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(p(r[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=p;return p=e,t}}),p=function(e){return JSON.stringify(e,d)};function d(e,t){return(0,i.s)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{})),t}function v(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return c(r,n,i,t)})),r}return null}function y(e){return e.alias?e.alias.value:e.name.value}function m(e,t,r){for(var n,i=0,a=t.selections;i=0;--h)t.definitions[h].kind===o.h.OPERATION_DEFINITION&&++f;var y=d(e),m=function(e){return(0,l.O)(e)&&e.map(y).some((function(e){return e&&e.remove}))},b=new Map,g=!1,_={enter:function(e){if(m(e.directives))return g=!0,null}},O=(0,a.Vn)(t,{Field:_,InlineFragment:_,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=c(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(m(e.directives))return g=!0,null;var o=c(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){b.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===b.get(JSON.stringify(n))?e:f>0&&e.selectionSet.selections.every((function(e){return e.kind===o.h.FIELD&&"__typename"===e.name.value}))?(u(e.name.value).removed=!0,g=!0,null):void 0}},Directive:{leave:function(e){if(y(e))return g=!0,null}}});if(!g)return t;var E=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){E(u(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},T=new Set;O.definitions.forEach((function(e){e.kind===o.h.OPERATION_DEFINITION?E(r(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){T.add(e)})):e.kind!==o.h.FRAGMENT_DEFINITION||0!==f||u(e.name.value).removed||T.add(e.name.value)})),T.forEach((function(e){E(u(e)).fragmentSpreads.forEach((function(e){T.add(e)}))}));var k={enter:function(e){if(t=e.name.value,!T.has(t)||u(t).removed)return null;var t}};return p((0,a.Vn)(O,{FragmentSpread:k,FragmentDefinition:k,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=E(r(e.name&&e.name.value)).transitiveVars;if(t.size120){for(var d=Math.floor(l/80),v=l%80,y=[],m=0;m0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(v(b),"stack",{value:s.stack,writable:!0,configurable:!0}),d(b)):(Error.captureStackTrace?Error.captureStackTrace(v(b),m):Object.defineProperty(v(b),"stack",{value:Error().stack,writable:!0,configurable:!0}),b)}return u=m,(c=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var r=0,n=e.nodes;ra)return"[Array]";for(var r=Math.min(o,e.length),n=e.length-r,i=[],s=0;s1&&i.push("... ".concat(n," more items"));return"["+i.join(", ")+"]"}(e,r);return function(e,t){var r=Object.keys(e);if(0===r.length)return"{}";if(t.length>a)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var r=e.constructor.name;if("string"==typeof r&&""!==r)return r}return t}(e)+"]";var n=r.map((function(r){return r+": "+u(e[r],t)}));return"{ "+n.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}},45695:function(e,t){var r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.Z=r},25217:function(e,t,r){r.d(t,{Ye:function(){return o},WU:function(){return a},UG:function(){return s}});var n=r(45695);function i(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,n.Z&&(e.prototype[n.Z]=t)}var o=function(){function e(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();i(o);var a=function(){function e(e,t,r,n,i,o,a){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function s(e){return null!=e&&"string"==typeof e.kind}i(a)},87392:function(e,t,r){function n(e){var t=e.split(/\r\n|[\n\r]/g),r=o(e);if(0!==r)for(var n=1;na&&i(t[s-1]);)--s;return t.slice(a,s).join("\n")}function i(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!n||o||a||r,u="";return!s||n&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}r.d(t,{LZ:function(){return a},W7:function(){return n},Z2:function(){return o}})},97359:function(e,t,r){r.d(t,{h:function(){return n}});var n=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},92105:function(e,t,r){r.d(t,{h:function(){return s},u:function(){return u}});var n=r(30587),i=r(25217),o=r(74635),a=r(87392),s=function(){function e(e){var t=new i.WU(o.T.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==o.T.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=l(this,e)}while(e.kind===o.T.COMMENT);return e},e}();function u(e){return e===o.T.BANG||e===o.T.DOLLAR||e===o.T.AMP||e===o.T.PAREN_L||e===o.T.PAREN_R||e===o.T.SPREAD||e===o.T.COLON||e===o.T.EQUALS||e===o.T.AT||e===o.T.BRACKET_L||e===o.T.BRACKET_R||e===o.T.BRACE_L||e===o.T.PIPE||e===o.T.BRACE_R}function c(e){return isNaN(e)?o.T.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function l(e,t){for(var r=e.source,a=r.body,s=a.length,u=t.end;u31||9===s));return new i.WU(o.T.COMMENT,t,c,r,n,a,u.slice(t+1,c))}function p(e,t,r,a,s,u){var l=e.body,f=r,h=t,p=!1;if(45===f&&(f=l.charCodeAt(++h)),48===f){if((f=l.charCodeAt(++h))>=48&&f<=57)throw(0,n.h)(e,h,"Invalid number, unexpected digit after 0: ".concat(c(f),"."))}else h=d(e,h,f),f=l.charCodeAt(h);if(46===f&&(p=!0,f=l.charCodeAt(++h),h=d(e,h,f),f=l.charCodeAt(h)),69!==f&&101!==f||(p=!0,43!==(f=l.charCodeAt(++h))&&45!==f||(f=l.charCodeAt(++h)),h=d(e,h,f),f=l.charCodeAt(h)),46===f||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(f))throw(0,n.h)(e,h,"Invalid number, expected digit but got: ".concat(c(f),"."));return new i.WU(p?o.T.FLOAT:o.T.INT,t,h,a,s,u,l.slice(t,h))}function d(e,t,r){var i=e.body,o=t,a=r;if(a>=48&&a<=57){do{a=i.charCodeAt(++o)}while(a>=48&&a<=57);return o}throw(0,n.h)(e,o,"Invalid number, expected digit but got: ".concat(c(a),"."))}function v(e,t,r,a,s){for(var u,l,f,h,p=e.body,d=t+1,v=d,y=0,b="";d=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function b(e,t,r,n,a){for(var s=e.body,u=s.length,c=t+1,l=0;c!==u&&!isNaN(l=s.charCodeAt(c))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++c;return new i.WU(o.T.NAME,t,c,r,n,a,s.slice(t,c))}},10143:function(e,t,r){r.d(t,{H:function(){return u},T:function(){return c}});var n=r(99763),i=r(25821);function o(e,t){if(!Boolean(e))throw new Error(t)}var a=function(e,t){return e instanceof t};function s(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||o(0,"Body must be a string. Received: ".concat((0,i.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||o(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||o(0,"column in locationOffset is 1-indexed and must be positive.")}var t,r,a;return t=e,(r=[{key:n.YF,get:function(){return"Source"}}])&&s(t.prototype,r),a&&s(t,a),e}();function c(e){return a(e,u)}},74635:function(e,t,r){r.d(t,{T:function(){return n}});var n=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"})},77304:function(e,t,r){r.d(t,{$_:function(){return a},Vn:function(){return s}});var n=r(25821),i=r(25217),o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=Object.freeze({});function s(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=void 0,c=Array.isArray(e),l=[e],f=-1,h=[],p=void 0,d=void 0,v=void 0,y=[],m=[],b=e;do{var g=++f===l.length,_=g&&0!==h.length;if(g){if(d=0===m.length?void 0:y[y.length-1],p=v,v=m.pop(),_){if(c)p=p.slice();else{for(var O={},E=0,T=Object.keys(p);E0&&(r="\n"+r);var n=r[r.length-1];return('"'===n&&'\\"""'!==r.slice(-4)||"\\"===n)&&(r+="\n"),'"""'+r+'"""'}},66128:function(e,t,r){r.d(t,{U6:function(){return h},ej:function(){return s},kG:function(){return u}});var n=r(70655),i="Invariant Violation",o=Object.setPrototypeOf,a=void 0===o?function(e,t){return e.__proto__=t,e}:o,s=function(e){function t(r){void 0===r&&(r=i);var n=e.call(this,"number"==typeof r?i+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=i,a(n,t.prototype),n}return(0,n.__extends)(t,e),t}(Error);function u(e,t){if(!e)throw new s(t)}var c=["debug","log","warn","error","silent"],l=c.indexOf("log");function f(e){return function(){if(c.indexOf(e)>=l)return(console[e]||console.log).apply(console,arguments)}}function h(e){var t=c[l];return l=Math.max(0,c.indexOf(e)),t}!function(e){e.debug=f("debug"),e.log=f("log"),e.warn=f("warn"),e.error=f("error")}(u||(u={}))}}]); //# sourceMappingURL=graphql.acd7346089877606e494.js.map